home *** CD-ROM | disk | FTP | other *** search
- //--------- sample script for HEXENTUT.ACS -----------------------
-
- #include "common.acs"
-
- int Script1; // control script1 running
- int DidDoor; // control hello there once
-
- // --------This script takes a licking and keeps on ticking -------
- // N/A here
- // Tid# DelayValue Type of Sound
- script 1 (int Tid, int TicDelay, int Type)
- {
-
- Script1 = Type;
-
- while (Script1 != 0 )
- {
- switch (Script1)
- {
- case 1:
- ambientsound("ClockTick", 127); // clock tick sound
- break;
- case 2:
- ambientsound("Drip", 127); // water Drip
- break;
- case 3:
- ambientsound("FlyBuzz", 127); // buzzing
- break;
- case 4:
- ambientsound("ValveTurn", 127); // valve turning
- break;
- case 5:
- ambientsound("StartupTick", 127); // more ticking
- break;
- default:
- terminate;
- }
-
- delay(TicDelay);
- }
- }
-
- //--------door Korax ready ---------------
-
- script 2 (void)
- {
- thingsound(2, "KoraxVoiceReady", 127);
- delay(const:100);
- }
-
- //--------door cough sound ----------------
-
- script 3 (void)
- {
- thingsound(3, "PlayerPoisonCough", 127);
-
- }
- //--------door glass sound -----------------
-
- script 4 (void)
- {
- thingsound(4, "GlassShatter", 127);
-
- }
- //--------door bell-----------------------
-
- script 5 (void)
- {
- thingsound(5, "BellRing", 127);
- }
- // ------ clock tick sound ---------------
- //
- // Tid# DelayValue Type of Sound
- script 6 (int Tid, int TicDelay, int Type)
- {
- while (Type!= 0 )
- { if (Type == 1)
- {
- thingsound(Tid, "ClockTick", 127); // clock tick sound
- }
- else // -or-
- {
- thingsound(Tid, "PuppyBeat", 127); // dog howling
- }
-
- delay(TicDelay);
- }
-
- }
- //------ rotating door --------------
-
- script 10 (void)
- {
-
- Polyobj_OR_RotateRight(const:4, 24, 64); // polyid, speed,angle
- delay(const:100);
-
- if (DidDoor == 0)
- { ambientsound("KoraxVoiceWorship", 127); // hi there
- delay(const:100);
- DidDoor = 1;
- }
-
- Polyobj_OR_RotateLeft(const:4, 24, 64); // polyid, speed,angle
- delay(const:100);
-
- }
-
- //------ stop script 1 (another way of doing it)--
-
- script 11 (void)
- {
- Script1 = 0;
- }
- // --------------end of simple stuff -------------
-
-